package com.dinian.zeus.service;

import com.dinian.zeus.domain.Newspaper;
import com.dinian.zeus.domain.ResponseVO;
import com.dinian.zeus.domain.SearchVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @Author dinian
 * @Date 2018-12-20
 */
public interface NewspaperService {

    List<Newspaper> findAllNewspaper();

    List<ResponseVO> searchNewspaper(Newspaper newspaper);

    Integer importNewspaper(MultipartFile file) throws IOException, ClassNotFoundException, Exception;

    int addNewspaper(Newspaper newspaper);

    Newspaper queryNewspaperById(String id);

    void modifyNewspaper(Newspaper newspaper);

    void removeNewspapers(Integer[] ids);
}
